<?php

/**
 *  controller: registreren nieuwe gebruiker
 * 
 *  @package    Aanmelden
 *  @subpackage Controller 
 *  @author     Ronny Sweetlove
 */

namespace Aanmelden\Controller;

class Registreren extends \Controller {
    
   public function index() {
        $this->_view = new \Aanmelden\Views\View();
        $this->_view->genereer('Aanmelden','Registreren','index');
        \Weergave::GENEREER();
    }
    
    public function registreer() {
        $this->_view = new \Aanmelden\Views\View();
        $this->_model = new \Aanmelden\Model\Registreren();
        $json = $this->_model->registreer();
        echo json_encode($json);
    }
}
